{% load staticfiles %}
{% load extra_user %}
<div class="list-group" style="margin-left:20px">
    {% stared_or_liked this_user as actions %}
    {% for action in actions %}
        {% if action.action == 'liked' %}
            <a href="{% url 'post:review_detail' action.content.id %}" class="list-group-item">
                <h4 class="list-group-item-heading">
                    {{ this_user.username }} 点赞了
                    <strong><<{{ action.content.title }}>></strong></h4>
                <p class="list-group-item-text">
                    {% autoescape off %}
                        {{ action.content.body | truncatechars_html:'60' }}
                    {% endautoescape %}
                </p>
            </a>
        {% elif action.action == "stared" %}
            <a href="{% url 'movie:movie_detail' action.content.id %}" class="list-group-item">
                <h4 class="list-group-item-heading">
                    {{ this_user.username }} 给
                    <strong><<{{ action.content.title }}>></strong>打了
                    <strong>{{ this_user|get_rating:action.content }}</strong></h4>
            </a>
        {% endif %}

    {% endfor %}
</div>